﻿using System;
using System.Collections.Generic;
using System.Linq;
using iConnector;

namespace Plugin
{
    class Plugin : iPlugin
    {
        private String pName;
        private IPluginHost pHost;
        public Plugin()
        {
            pName = "Demo";
        }
        public String Name
        {
            get { return pName; }
            set { pName = value; }
        }
        public void Load()
        {
            Console.WriteLine(pName+":: Hello");
        }
        public void Unload()
        {
            Console.WriteLine(pName+":: ByeBye");
        }
        public IPluginHost Host
        {
            get { return pHost; }
            set { pHost = value; pHost.Register(this); }
        }
    }
}
